/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DataBase;

import java.io.Serializable;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Customer
 */
@Entity
@Table(name = "CLASSEQUIPMENT", catalog = "", schema = "NGUYENCONGKHA")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Classequipment.findAll", query = "SELECT c FROM Classequipment c"),
    @NamedQuery(name = "Classequipment.findById", query = "SELECT c FROM Classequipment c WHERE c.id = :id"),
    @NamedQuery(name = "Classequipment.findByLat", query = "SELECT c FROM Classequipment c WHERE c.lat = :lat"),
    @NamedQuery(name = "Classequipment.findByLng", query = "SELECT c FROM Classequipment c WHERE c.lng = :lng"),
    @NamedQuery(name = "Classequipment.findByClass1", query = "SELECT c FROM Classequipment c WHERE c.class1 = :class1")})
public class Classequipment implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "ID", nullable = false)
    private Integer id;
    @Column(name = "LAT", length = 255)
    private String lat;
    @Column(name = "LNG", length = 255)
    private String lng;
    @Column(name = "CLASS")
    private Integer class1;

    public Classequipment() {
    }

    public Classequipment(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getLng() {
        return lng;
    }

    public void setLng(String lng) {
        this.lng = lng;
    }

    public Integer getClass1() {
        return class1;
    }

    public void setClass1(Integer class1) {
        this.class1 = class1;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Classequipment)) {
            return false;
        }
        Classequipment other = (Classequipment) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "DataBase.Classequipment[ id=" + id + " ]";
    }
    
}
